<?php
$this->pageTitle = Yii::app()->name . ' - ' . AdmincpModule::t("Change Password");
?>
<div id="content-header">
    <?php
    $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
        'links' => array('Users' => array('/admincp/profile'), 'Mật khẩu'),
        'htmlOptions' => array('id' => 'breadcrumb')
    ));
    ?>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="widget-box">
            <div class="widget-title">
                <span class="icon">
                    <i class="icon-align-justify"></i>
                </span>
                <h5>Thay đổi mật khẩu</h5>
            </div>
            <div class="widget-content nopadding">
                <div class="widget-container">
                    <?php
                    $form = $this->beginWidget('UActiveForm', array(
                        'id' => 'changepassword-form',
                        'enableAjaxValidation' => true,
                        'htmlOptions' => array('enctype' => 'multipart/form-data', 'class' => 'form-horizontal'),
                    ));
                    ?>
                    <div class="control-group">
                        <?php echo $form->labelEx($model, 'password', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->passwordField($model, 'password'); ?>
                            <?php echo $form->error($model, 'password'); ?>
                        </div>
                    </div>

                    <div class="control-group">
                        <?php echo $form->labelEx($model, 'verifyPassword', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->passwordField($model, 'verifyPassword'); ?>
                            <?php echo $form->error($model, 'verifyPassword'); ?>
                        </div>
                    </div>


                    <div class="form-actions">
                        <?php echo CHtml::submitButton(AdmincpModule::t("Save"),array('class'=>'pull-right btn btn-success')); ?>
                    </div>

                    <?php $this->endWidget(); ?>
                </div><!-- form -->
            </div>
        </div>
    </div>
</div>